package com.example.demo;

import com.example.demo.mapper.UserInfoMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 公众号:干货食堂
 * Project Name: springboot-mybatis-demo2
 * File Name: TestController
 * Package Name: com.example.demo
 * Date: 2023/7/13 23:16
 * Copyright (c) 2023,All Rights Reserved.
 * @Description
 */
@Slf4j
@RestController
@RequestMapping("user")
public class TestController {

    @Autowired
    private UserInfoMapper userInfoMapper;

    @RequestMapping("/list")
    public Object toLogin(){
        return userInfoMapper.selectByExample(null);
    }

}
